home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmTextFieldReplaceWcs.z / XmTextFieldReplaceWcs
Encoding:
Text File  |  2003-11-18  |  3.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeeeWWWWccccssss((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeeeWWWWccccssss((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_T_e_x_t_F_i_e_l_d_R_e_p_l_a_c_e_W_c_s    - A TextField function that replaces
  10.       part of a wide character string in a TextField widget
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/TextF.h>
  14.  
  15.       void XmTextFieldReplaceWcs (wwwwiiiiddddggggeeeetttt,,,, ffffrrrroooommmm____ppppoooossss,,,,    ttttoooo____ppppoooossss,,,,    wwwwccccssssttttrrrriiiinnnngggg)
  16.            _W_i_d_g_e_t       wwwwiiiiddddggggeeeetttt;
  17.            _X_m_T_e_x_t_P_o_s_i_t_i_o_nffffrrrroooommmm____ppppoooossss;
  18.            _X_m_T_e_x_t_P_o_s_i_t_i_o_nttttoooo____ppppoooossss;
  19.            _w_c_h_a_r__t       *wwwwccccssssttttrrrriiiinnnngggg;
  20.  
  21.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.       _X_m_T_e_x_t_F_i_e_l_d_R_e_p_l_a_c_e_W_c_s    replaces part of the wide character
  23.       string in the    TextField widget.  The character positions
  24.       begin    at zero    and are    numbered sequentially from the
  25.       beginning of the text.
  26.  
  27.       An example text replacement would be to replace the second
  28.       and third characters in the text string.  To accomplish
  29.       this,    the parameter ffffrrrroooommmm____ppppoooossss must be 1 and ttttoooo____ppppoooossss must be 3.
  30.       To insert a string after the fourth character, both
  31.       parameters, ffffrrrroooommmm____ppppoooossss and ttttoooo____ppppoooossss, must    be 4.
  32.  
  33.       This routine calls the widget's _X_m_N_v_a_l_u_e_C_h_a_n_g_e_d_C_a_l_l_b_a_c_k and
  34.       verification callbacks, either _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k or
  35.       _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k_W_c_s, or both.    If both    verification
  36.       callback lists are registered, the procedures    of the
  37.       _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k list are executed first and the
  38.       resulting data is passed to the _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k_W_c_s
  39.       callbacks.
  40.  
  41.       wwwwiiiiddddggggeeeetttt
  42.            Specifies the TextField widget ID
  43.  
  44.       ffffrrrroooommmm____ppppoooossss
  45.            Specifies the start position of the text    to be replaced
  46.  
  47.       ttttoooo____ppppoooossss
  48.            Specifies the end position of the text to be replaced
  49.  
  50.       wwwwccccssssttttrrrriiiinnnngggg
  51.            Specifies the wide character string value to be added
  52.            to the TextField    widget
  53.  
  54.       For a    complete definition of TextField and its associated
  55.       resources, see _X_m_T_e_x_t_F_i_e_l_d(_3_X).
  56.  
  57.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  58.       _X_m_T_e_x_t_F_i_e_l_d(_3_X) and _X_m_T_e_x_t_F_i_e_l_d_R_e_p_l_a_c_e(_3_X).
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.